package com.example.actions;

import com.alibaba.cola.statemachine.Action;
import com.example.context.Context;
import com.example.enums.Events;
import com.example.enums.Status;
import com.example.po.SysSms;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SysSmsCommitAction implements Action<Status, Events, Context> {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void execute(Status status, Status s1, Events events, Context context) {
        SysSms sysSms = context.getSysSms();
        logger.warn("短信：" + sysSms.getId() + "成功确认 execute ...");
    }
}
